package com.sandman.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;

/**
 * @author 范珈诚
 * time 10:38 PM 9/25/22
 * notes
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ArticleVo implements Serializable {

    @ApiModelProperty("主键")
    Integer id;

    @ApiModelProperty("标题")
    String title;

    @ApiModelProperty("化名")
    String nickName;

    @ApiModelProperty("ip属地")
    String geoIp;

    @ApiModelProperty("文章正文")
    String text;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("上传时间")
    String insertTime;

    @ApiModelProperty("被喜爱总数")
    Integer likeCount;

    @ApiModelProperty("被踩总数")
    Integer dislikeCount;

}
